package com.wxb.service.impl;

import com.wxb.domain.MallSearchHistoryEntity;
import com.wxb.mapper.MallSearchHistoryMapper;
import com.wxb.service.IMallSearchHistoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-28 9:57
 * @Version 1.0
 * @Description
 * @ClassName SearchHistoryServiceImpl
 **/
@Service
public class MallSearchHistoryServiceImpl implements IMallSearchHistoryService {
    @Resource
    private MallSearchHistoryMapper searchHistoryDao;


    public MallSearchHistoryEntity queryObject(Integer id) {
        return searchHistoryDao.queryObject(id);
    }


    public List<MallSearchHistoryEntity> queryList(Map<String, Object> map) {
        return searchHistoryDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return searchHistoryDao.queryTotal(map);
    }


    public void save(MallSearchHistoryEntity region) {
        searchHistoryDao.save(region);
    }


    public void update(MallSearchHistoryEntity region) {
        searchHistoryDao.update(region);
    }


    public void delete(Integer id) {
        searchHistoryDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        searchHistoryDao.deleteBatch(ids);
    }

    public void deleteByUserId(Long userId) {
        searchHistoryDao.deleteByUserId(userId);
    }
}
